package com.example.hotel_lxy.ui.main.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.example.hotel_lxy.R;
import com.example.hotel_lxy.other.GroupRecyclerAdapter;
import com.haibin.calendarview.CalendarView;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.LinkedHashMap;
import java.util.List;

public class CalendarAdapter extends GroupRecyclerAdapter<String,String> {

    public CalendarAdapter(Context context) {
        super(context);
        LinkedHashMap<String, String> map = new LinkedHashMap<>();
        List<String> titles = new ArrayList<>();
        map.put("今日推荐", "");
        map.put("每周热点", "");
        map.put("最高评论", "");
        titles.add("今日推荐");
        titles.add("每周热点");
        titles.add("最高评论");
    }

    @Override
    protected RecyclerView.ViewHolder onCreateDefaultViewHolder(ViewGroup parent, int type) {
        return new CalendarViewHolder(mInflater.inflate(R.layout.item_calendar, parent, false));
    }

    @Override
    protected void onBindViewHolder(RecyclerView.ViewHolder holder, String item, int position) {

    }

    private static class CalendarViewHolder extends RecyclerView.ViewHolder {

        private CalendarView calendarView;

        private CalendarViewHolder(View itemView) {
            super(itemView);
            calendarView = itemView.findViewById(R.id.calendarView);
        }
    }
}
